import Layout from '@/layout/Layout'

const addressRouter = {
  path: '/address',
  component: Layout,
  redirect: 'noredirect',
  name: '地址管理',
  meta: {
    title: '地址管理',
    icon: 'el-icon-map-location'
  },
  children: [
    /*{
      path: 'deviceLocationManagement',
      component: () => import('@/views/address/DeviceLocationManagement'),
      name: 'DeviceLocationManagement',
      meta: { title: '设备地址',cache: true}
    },*/
    {
      path: 'localeManagement',
      component: () => import('@/views/address/LocaleManagement'),
      name: 'LocaleManagement',
      meta: { title: '场所管理',cache: true}
    },
    {
      path: 'villageManagement',
      component: () => import('@/views/address/VillageManagement'),
      name: 'VillageManagement',
      meta: { title: '小区管理',cache: true}
    },
    {
      path: 'villageApplyManagement',
      component: () => import('@/views/address/VillageApplyManagement'),
      name: 'VillageApplyManagement',
      meta: { title: '小区申请',cache: true}
    },
    {
      path: 'villageAreaManagement',
      component: () => import('@/views/address/VillageAreaManagement'),
      name: 'VillageAreaManagement',
      meta: { title: '栋单元层管理',cache: true}
    },
    {
      path: 'communityManagement',
      component: () => import('@/views/address/CommunityManagement'),
      name: 'CommunityManagement',
      meta: { title: '社区管理',cache: true}
    }
  ]
}

export default addressRouter
